import Vue from 'vue';
import Notice from './notice.vue';
let NoticeConstructor = Vue.extend(Notice); // 返回一个“扩展实例构造器”

let NoticeModal = (o) => {
    let alertDom = new NoticeConstructor({
        data:o
    }).$mount();//渲染组件
    document.body.appendChild(alertDom.$el); //把Alert组件的dom添加到body里
}
export default NoticeModal;

